@extends('admin._layouts.default')

@section('main')

        <div class="row-fluid">
          <div class="span3">
            <div class="content">
              <div class="row-fluid well well-small">
                  <img class="row-fluid" src="{{ $customer->avatar }}">
              </div>
              <ul class="nav nav-tabs nav-stacked">
                <li><a href="#"><i class="fa fa-user"></i> {{ $customer->name }}</a></li>
                <li><a href="#"><i class="fa fa-wechat"></i> {{ $customer->nickname }}</a></li>
                <li><a href="#"><i class="fa fa-long-arrow-up"></i> 身高：{{ $parm->height }}</a></li>
                <li><a href="#"><i class="fa fa-tachometer"></i> 体重：{{ $parm->weight }}</a></li>
                <li><a href="#"><i class="fa fa-circle-o-notch"></i> 腰围：{{ $parm->waist }}</a></li>
                <li><a href="#"><i class="fa  fa-circle-o"></i> 领围：{{ $parm->neck }}</a></li>
                <li><a href="#"><i class="fa fa-arrows-v"></i> 鞋码：{{ $parm->shoe }}</a></li>
                <li><a href="#"><i class="fa fa-briefcase"></i> 职业：{{ $parm->job }}</a></li>
                <li><a href="#"><i class="fa fa-birthday-cake"></i> 年龄：{{ $parm->age }}</a></li>
                <li><a href="#"><i class="fa fa-heart"></i> 偏好：{{ $parm->fondness }}</a></li>
                <li><a href="#"><i class="fa fa-bug"></i> 常见困扰：{{ $parm->other }}</a></li>
              </ul>
            </div> <!-- End .content -->
          </div><!-- End .span3 -->

          <div class="span9">
            <div class="row-fluid legend profile">
              <div class="row-fluid ">
                <div class="span6 spacer">
                  <h3>订单处理</h3>
                </div>
                <div class="span6">
                  <div class=" pull-right">
                    <a class="btn" href="order_index.html"><i class="fa fa-remove"></i> 返回订单列表</a>
                    <!--<button class="btn btn-primary">发货</button> -->
                  </div>
                </div>
              </div>
            </div> <!-- End .legend -->

            <!-- 客户预订信息开始 -->
            <div class="content spacer-big">
              <h3><span><i class="fa fa-edit"></i> 客户预订信息</span></h3>
              <div class="form-row control-group row-fluid">
                <div class="controls span1">
                    <img src="{{ $customer->avatar }}" class="img-thumbnail">
                </div>
                <div class="controls span10">
                  <blockquote>
                    <p><span class="mg5"><i class="icon-home"></i> 场合: {{ $order->event }} </span>
                    {{--<span class="mg5"><i class="icon-calendar"></i> 急用情况: 明天</span>--}}
                    </p>
                    <p><i class="fa fa-edit"></i>{{ $order->remark }}</p>
                    <footer>{{ $order->created_at }}</footer>
                  </blockquote>
                </div>
              </div>
            <!-- 客户预订信息结束 -->

            <!-- 搭配方案开始 -->
              <hr>
              <h3><span><i class="fa fa-align-justify"></i> 搭配方案</span></h3>
              <div>
                <!-- 历史沟通信息开始 -->
              {{--<div class="form-row control-group row-fluid">--}}
                {{--<div class="controls span1">--}}
                    {{--<img src="img/logo_avatar.gif" class="img-thumbnail">--}}
                {{--</div>--}}
                {{--<div class="controls span10">--}}
                  {{--<blockquote>--}}
                    {{--<p><span class="mg5"><i class="fa fa-tag"></i> 白色全棉长袖衬衫 <i class="fa fa-cny"></i>2800</span>--}}
                    {{--<span class="mg5"><i class="fa fa-tag"></i> 藏青牛仔裤 <i class="fa fa-cny"></i>2800</span>--}}
                    {{--</p>--}}
                    {{--<p><i class="fa fa-edit"></i> 符合您的儒商气质！</p>--}}
                    {{--<footer>2014-12-12 12:20</footer>--}}
                  {{--</blockquote>--}}
                {{--</div>--}}
              {{--</div>--}}
              {{--<div class="form-row control-group row-fluid">--}}
                {{--<div class="controls span1">--}}
                    {{--<img src="img/sample_avatar_big.jpg" class="img-thumbnail">--}}
                {{--</div>--}}
                {{--<div class="controls span10">--}}
                  {{--<blockquote class="blockquote-reverse">--}}
                    {{--<p><i class="fa fa-edit"></i> 牛仔裤最好改成西裤</p>--}}
                    {{--<footer>2014-12-12 13:30</footer>--}}
                  {{--</blockquote>--}}
                {{--</div>--}}
              {{--</div>--}}
              {{--<hr class="border_das">--}}

            <!-- 历史沟通信息结束 -->
            {{ Form::open(array('route' => 'admin.collocations.store','id'=>'form_new')) }}
            <input type="hidden" name="order_id" value="{{ $order->id }}">
            <!-- 第一条方案开始 -->
              <div class="form-row control-group row-fluid">
                <div class="controls span7">
                  <div class="input-prepend row-fluid">
                    <span class="add-on prepend "><i class="fa fa-tag"></i></span>
                    <input class="row-fluid" name="content[]" id="cloth1" required  size="50" type="text" placeholder="请描述一款服饰，如全棉白色长袖衬衫">
                  </div>
                </div>
                <div class="controls span3">
                  <div class="input-prepend input-append row-fluid">
                    <span class="add-on prepend "><i class="fa fa-cny"></i></span>
                    <input class="row-fluid" name="price[]" id="price1" required  size="6" type="text">
                    <span class="add-on ">.00</span>
                  </div>
                </div>
                <div class="controls span2">
                  <a href="javascript:void (0)" onclick="insert()" class="btn btn-primary" rel="tooltip" data-placement="left" data-original-title="新增一条"><i class="fa  fa-plus"></i></a><!-- 第一条不能删 -->
                </div>
              </div>
            <!-- 第一条方案结束 -->
            <!-- 新增一条方案开始 -->
            <div id="to_copy" style="display: none;">
              <div class="form-row control-group row-fluid">
                <div class="controls span7">
                  <div class="input-prepend row-fluid">
                    <span class="add-on prepend "><i class="fa fa-tag"></i></span>
                    <input class="row-fluid" name="content[]" id="cloth2" required  size="50" type="text" placeholder="请描述一款服饰，如全棉白色长袖衬衫">
                  </div>
                </div>
                <div class="controls span3">
                  <div class="input-prepend input-append row-fluid">
                    <span class="add-on prepend "><i class="fa fa-cny"></i></span>
                    <input class="row-fluid" name="price[]" id="price2" required  size="6" type="text">
                    <span class="add-on ">.00</span>
                  </div>
                </div>
                <div class="controls span2">
                  <button  onclick="deletes(this)"  class="btn btn-inverse" rel="tooltip" data-placement="left" data-original-title="删除本条"><i class="fa  fa-trash" ></i></button>
                </div>
              </div>
              </div>
            <!-- 新增一条方案结束 -->
            <!-- 说明开始 -->
              <div class="form-row control-group row-fluid">
                <div class="controls span7">
                  <textarea rows="3" name="remark" class="row-fluid autogrow" id="elastic-textarea" placeholder="说明一下搭配思路.."></textarea>
                </div>
              </div>
            <!-- 说明结束 -->
              <div class="form-actions row-fluid">
                <div class="span5 offset3">
                  <button type="submit" class="btn btn-primary"  onclick="sub()"><i class="fa fa-paper-plane"></i> 发给客户</button>
                  <a class="btn btn-secondary" href="#" data-toggle="modal" data-target="#decline"><i class="fa fa-frown-o"></i> 需求较复杂无法满足</a>
                  <!-- 无法满足确认开始 -->
                  <div id="decline" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" >
                      <div class="modal-dialog modal-sm">
                          <div class="modal-content">
                              <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                <h3 class="modal-title" id="declineLabel">请说明下拒绝理由吧</h3>
                              </div>
                              <div class="modal-body">
                                  <textarea rows="3" class="row-fluid autogrow" id="declinereson">您的需求中部分内容我们无法帮您解决，期待与您的再次沟通！</textarea>
                              </div>
                              <div class="modal-footer">
                              <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                              <button type="button" class="btn btn-primary"><i class="fa fa-paper-plane-o"></i> 确定</button>
                              </div>
                          </div>
                        </div>
                    </div>
                  <!-- 无法满足确认结束 -->
                </div>
              </div>
    {{ Form::close() }}

              </div>
              <!-- 搭配方案结束 -->



            </div> <!-- End .content -->
          </div><!-- End .span9 -->
        </div><!-- End .row-fluid -->

@stop

@section('script')
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.peity.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.uniform.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/chosen/chosen/chosen.jquery.min.js') }}"></script>

<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/flot/jquery.flot.js') }}"></script>



<script src="{{ URL::asset('web/js/scripts.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/jnavigate.jquery.min.js') }}"></script>

<script>
function insert(){
    var copy = $('#to_copy');
    var html = copy.html();
    copy.before(html);

}
function deletes(obj){
        $(obj).parent().parent().remove();

}
function sub(){
    $('#form_new').submit();
}
</script>
@stop
